<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>顺风车 --- 我做主：物品上传</title>
<link href="${ctx}/css/panels.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/myhome-css/home_service_base.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/myhome-css/upload-book.css" rel="stylesheet" type="text/css" />

<link type="text/css" href="${ctx}/css/jquery-ui-css/smoothness/jquery-ui-1.7.custom.css" rel="stylesheet" />
<script type="text/javascript" src="${ctx}/js/jquery-ui-js/jquery-ui-1.7.custom.min.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery-ui-js/i18n/ui.datepicker-zh-CN.js"></script>
</head>
<body>

    <!--右栏开始-->
    <div id="orderList" class="account_right">
<div class="bluePanel">
<h3 style="height:16px;"><a href="#" class="titleLink" title="发布一款新车">发布一款新车</a></h3>
<div class="box">
      <!--<h2>发布一款新车</h2>-->
      <h3>请在下方输入您将发布的书的详细信息（请尽量准确完整，以便被被人搜到），然后点击“发布”按钮。</h3>
      <div class="no_dang_m">
        <div class="no_dang_border">
		  <!--下面是右边内容方框-->
          <div class="activ_lq">
          <form action="${ctx}/home/upload-book!save.action" enctype="multipart/form-data" method="post" >
			<div>
              <label>商品名：</label>
              <input id="couponID_input" class="put_in" maxlength="20" name="bookName" type="text" value="${bookName}"/>
              <span id="couponID_warn"></span>
            </div>
            <div>
              <label>品牌：</label>
              <input id="coupon_password_input" class="put_in" maxlength="20" type="text" name="isbn"  type="text" value="${isbn}"/>
              <span id="coupon_password_warn"></span>
              <a href="#" style="display:block;margin-top:4px;">获取已有此商品信息</a>
            </div>
            <div>
              <label>原价：</label>
              <input class="put_in" maxlength="20" name="price" type="text" value=""/><label style="width:7px;">元</label>
              <span id="couponID_warn"></span>
            </div>
            
            <div>
              <label>图片：</label>
              <input id="file" type="file" name="myFile" id="Myfile" size="36" maxlength="30" style="height:21px; width:225px; font-size:12px; padding-top:3px; float:left;" />
              <span id="coupon_img_warn"></span>
            </div>
            
            <div>
              <label>售价：</label>
              <input class="put_in" maxlength="20" name="sell_price" type="text" value=""/><label style="width:7px;">元</label>
              <span id="couponID_warn"></span>
            </div>
            <div>
              <label>数量：</label>
              <input class="put_in" maxlength="20" name="count" type="text" value=""/>
              <span id="couponID_warn"></span>
            </div>
            <div style="height:70px;">
              <label>描述：</label>
              <textarea class="put_in" name="content" style="height:60px;width:312px;float:left;"></textarea>
              <span id="couponID_warn"></span>
            </div>
            
            <div class="mode_yzm_cont_e_100x30">
              <p>输入验证码：</p>
              <input id="checkCode" name="captcha"  type="text"/>
              <span id="captchaImg"><img title="验证码" src="${ctx}/jcaptcha.jpg" /></span> 
             <a href="javascript:refreshCaptcha()">换张图</a><span id="vcode_warn"></span> 
            </div>
            <div>
              <input class="butt_acti" value="确&nbsp;&nbsp;&nbsp;定" type="submit" name="input"/>
              <input class="butt_acti" value="取&nbsp;&nbsp;&nbsp;消" type="reset" name="reset" style="margin-left: 0;"/>
            </div><br />
            <div style="color:#f00;">
            <p style="margin-left:85px;"><s:fielderror></s:fielderror> <s:actionerror/></p>
            <s:if test="captchaError !=null">
	  			<p style="margin-left:85px;">验证码错误，请重试.</p>
	  		</s:if>
            </div>
            <div class="lq_note"><span id="tag_box"></span></div>
          </form>
          </div>
          <div class="intro intro_lq">
            <h3 class=tit>上传商品说明</h3>
            <h3><strong>为何上传商品?</strong></h3>
            <h3>上传的商品可以用来销售!</h3>
            <h3><strong>如何完整填写商品信息?</strong></h3>
            <h3>您可以通过本站或者其他网站上商品的信息，来准确的完成您旧物的发布。</h3>
            <h3><strong>更多上传物品条款：</strong></h3>
            <h3><a href="#" target="_blank">点击这里，了解详情</a>。</h3>
          </div>
		  <!--右边内容方框结束-->
          <div class="clear"></div>
        </div>
        <div class="clear"></div>
      </div>
      <h3>获取已有物品的信息：是从系统物品库中选取与您即将发布相同的商品，这样会节省您很多时间！刚快试试看！</h3>
</div>
</div>
    </div>
<script type="text/javascript" language="javascript">
	var id = "i${id}";//这里加上i只是为了避免js错误
	if(id!="i"){ 
		$(":file")[0].disabled="disabled";
	}
	function refreshCaptcha(){
		$('#captchaImg').html('<img src="${ctx}/jcaptcha.jpg?'+Math.round(Math.random()*100000)+'"/>');
	};
	
	$(document).ready(function(){
		$(function() {
			$("#datepicker").datepicker({
				changeMonth:true,
				changeYear:true,
				showButtonPanel:true
			});
		});
	});
    
 </script>
<!--<div class="empty_box"></div>-->
<!--<div style="POSITION: absolute" id="tag_box"></div>-->
    <!--右栏结束-->
</body>
</html>